package com.ltx.blog_ltx.mapper;

import com.ltx.blog_ltx.entity.pojo.Collect;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CollectMapper {

    //收藏文章
    int attentionBlog(Collect collect);
    //博客是否被用户关注了
    int blogByUser(int blogId,int userId);
    //取消收藏
    int unfollow(int blogId,int userId);
    //用户关注的所有文章id
    List<Integer> Collect_Blogid(int userId);

}
